package com.hsbc.dev.teamo4.sms.sm.dao;

import com.hsbc.dev.teamo4.sms.common.base.IEntityDao;
import com.hsbc.dev.teamo4.sms.sm.po.Department;
import com.hsbc.dev.teamo4.sms.sm.po.Menu;

import java.sql.SQLException;
import java.util.List;
import java.util.Map;

/**
 * @author:Cady
 * @version:
 * @Project: permission_manage
 * @Package: com.hsbc.dev.teamo4.sms.sm.dao
 * @Description:
 * @Date date: 2018-07-25
 */
public interface IMenuDao extends IEntityDao<Menu> {
    /**
     * @Description set menu.isEnable to 0
     * @Date: 15:29 2018-07-27
     * @Param id
     * @return void
     */
    void deleteMenuById(String id);

    List<Menu> getChildMenuListByLevel(String level);

    void batchUpdateLevel(List<Menu> menus);

    Map countByNameAndParentId(String parentId, String menuName, String menuId);
}
